<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <title>应用列表</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <link rel="shortcut icon" href="favicon.ico">
    <link href="__STATIC__/css/bootstrap.min.css" rel="stylesheet">


    <link href="__STATIC__/css/plugins/jQueryUI/jquery-ui-1.10.4.custom.min.css" rel="stylesheet">
    <link href="__STATIC__/css/plugins/jqgrid/ui.jqgrid.css" rel="stylesheet">




    <link href="__STATIC__/css/font-awesome.min.css" rel="stylesheet">
    <link href="__STATIC__/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="__STATIC__/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/css/style.css" rel="stylesheet">
</head>

<body class="fixed-sidebar full-height-layout gray-bg">
<div id="wrapper">
    <!--左侧导航开始-->
    <include file="Public/left" title="left" />
    <!--左侧导航结束-->
    <!--右侧部分开始-->
    <div id="page-wrapper" class="gray-bg dashbard-1" style="height: auto;">
        <include file="Public/top" title="top" />
        <div class="row J_mainContent" id="content-main">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-content">
                        <div class="row">
                            <div class="col-md-8">
                                <a class="btn btn-success" href="{:U('Download/insert')}">
                                    <i class="fa fa-user-plus"></i> 添加网址
                                </a>
                            </div>
                            <div class="col-sm-4">
                                <form action="{:U('Download/index')}" method="post">
                                    <div class="form-group input-group">
                                        <input type="text" class="form-control" name="key" placeholder="输入应用名称搜索">
                                        <span class="input-group-btn">
                                         <input class="btn btn-default" type="submit" value="提交">
                                        </span>
                                    </div>
                                </form>
                            </div>
                        </div>
                        <div class="table-responsive">
                            <table class="table table-striped">
                                <thead>
                                <tr>
                                    <th>ID</th>
                                    <th>下载次数</th>
                                    <th>赠送次数</th>
                                    <th>金额</th>
                                    <th>标题</th>
                                    <th>是否展示</th>
                                    <th>添加时间</th>
                                    <th>修改时间</th>

                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <foreach name="list" item="v" key="k">

                                    <tr>
                                        <td><input type="checkbox" class="i-checks" value="{$v.id}">{$v.id}</td>
                                        <td>{$v.downum}</td>
                                        <td>{$v.giftsnum}</td>
                                        <td>{$v.price}</td>
                                        <td>{$v.remarks}</td>
                                        <if condition="$v.isshow eq 1">
                                            <td>是</td>
                                        <else/>
                                            <td>否</td>
                                        </if>

                                        <td>{$v.addtime}</td>
                                        <td>{$v.updatetime}</td>
                                        <td>
                                            <a href="{:U('Download/update',array('id'=>$v['id']))}">编辑</a>|
                                            <a href="{:U('Download/delete',array('id'=>$v['id']))}" style="color:red;" onclick="javascript:return del('您真的确定要删除吗？\n\n删除后将不能恢复!');">删除</a>
                                        </td>
                                    </tr>

                                </foreach>
                                </tbody>
                            </table>
                            {$page}
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--右侧部分结束-->
</div>
</body>

<!-- 全局js -->
<script src="__STATIC__/js/jquery.min.js"></script>
<script src="__STATIC__/js/jquery-ui.custom.min.js"></script>

<script src="__STATIC__/js/plugins/jquery-ui/jquery-ui.min.js"></script>
<script src="__STATIC__/js/plugins/jqgrid/i18n/grid.locale-cn.js"></script>
<script src="__STATIC__/js/plugins/jqgrid/jquery.jqGrid.min.js"></script>



<script src="__STATIC__/js/bootstrap.min.js"></script>
<script src="__STATIC__/js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="__STATIC__/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="__STATIC__/js/plugins/layer/layer.min.js"></script>
<script>
    $.jgrid.no_legacy_api = true;
    $.jgrid_useJSON=true;
</script>
<!-- 自定义js -->
<script src="__STATIC__/js/hAdmin.js"></script>
<script src="__STATIC__/js/content.js"></script>
<!-- 第三方插件 -->
<script src="__STATIC__/js/plugins/pace/pace.min.js"></script>
<!-- iCheck -->
<script src="__STATIC__/js/plugins/iCheck/icheck.min.js"></script>
</html>
<script>

    $(document).ready(function() {
        $('.i-checks').iCheck({
            checkboxClass: 'icheckbox_square-green',
            radioClass: 'iradio_square-green',
        });
    });

</script>